package tools.clustering.DistanceGenerators;

public class DistanceGeneratorUtils {

	/**
	 * @param args
	 */
	public static void main(String[] args)throws Exception{
		if(args.length>0){
			if(args[0].equals("word")&&args.length==3){
				WordDistanceMatrix.createMatrix(args[1], args[2]);
			}else{
				System.err.println(printHelp());
				System.exit(616);
			}
		}else{
			System.err.println(printHelp());
			System.exit(616);
		}
		System.exit(0);
	}

	private static String printHelp(){
		String help="DistanceGeneratorUtils contains different methods for generation of DistanceMatrices\n";
		help+="Usage: PhylipUtils <cmd> <input>\n";
		help+="where <cmd> is:\n";
		help+="word - Distance depends on tab separated String arrays (id\\tstring\\t...\\tstring). The file should have a header. (2 for different, 1 if one is missing and 0 if they are equal)\n";
		help+="\t<input> = <attribute-file> <outprefix>\n";
		
		
		return help;
	}
}
